-- GENERATED SPELL FOR [Kor'kron Defender] --


function spell0_19362(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19362', 664, 1)
end

function spell1_19362(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_19362', 555, 1)
end

function Sorts_19362(pUnit, Event)
local choix_sorts_19362 = math.random(0, 1)
if choix_sorts_19362 == 0 then
pUnit:RegisterEvent('spell0_19362', 1, 1)
end
if choix_sorts_19362 == 1 then
pUnit:RegisterEvent('spell1_19362', 1, 1)
end
end

function mob19362_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19362', math.random(1500, 3000), 1)
end

function mob19362_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19362_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19362_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19362, 1, 'mob19362_Action')
RegisterUnitEvent(19362, 2, 'mob19362_Leave')
RegisterUnitEvent(19362, 3, 'mob19362_Kill')
RegisterUnitEvent(19362, 4, 'mob19362_Die')
